type GreetFunction = (a: string) => void

function greeter(fn: GreetFunction): void {
    fn('fuck')
}

greeter(a=>console.log(a))